<link rel="stylesheet" href="<?=$baseUrl;?>resources/css/jquery-ui-1.10.4.custom.min.css" />
<link rel="stylesheet" href="<?=$baseUrl;?>resources/css/styles.css" />
<?php
if ($this->uri->segment ( 1 ) == '') {
    $file = "login";
} else {
    $file = $this->uri->segment ( 1 );
    if ($file != 'login'){
        if ($this->uri->segment ( 2 ) == '') {
            $file .= '/index';
        } else {
            $file .= '/' . $this->uri->segment ( 2 );
        }
    }
}
?>
<link rel="stylesheet" href="<?=$baseUrl;?>resources/css/<?=$file;?>.css" />

<script src="<?=$baseUrl;?>resources/js/jquery.js"></script>
<script src="<?=$baseUrl;?>resources/js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="<?=$baseUrl;?>resources/js/highcharts.js"></script>
<script src="<?=$baseUrl;?>resources/js/exporting.js"></script>
<script>
    var BASEURL = '<?=$baseUrl;?>';
</script>
<script src="<?=$baseUrl;?>resources/js/scripts.js"></script>

<script src="<?=$baseUrl;?>resources/js/<?=$file;?>.js"></script>